#ifndef CpEvent_h
#define CpEvent_h

#include <TObject.h>
#include <TClonesArray.h>

#include "CpTrack.h"
class CpEvent : public TObject {
public:
   CpEvent();
   ~CpEvent();

   void Clear();
   void Print();

   CpTrack *AddTrack(const Int_t &id);
   CpTrack *GetTrack(const Int_t &index) { return (CpTrack*) fTracks.At(index);}
   Long64_t GetNumberOfTracks() { return fNumberOfTracks; }

   void SimulateTracks(Long64_t &numOfTracks);

private:

   Long64_t      fNumberOfTracks;
   TClonesArray  fTracks;

   ClassDef(CpEvent, 1);
   void SimulateOneTrack();
};

#endif
